package com.aaa.phone.dao.appuserwalletdao;

import com.aaa.entity.AppUserWallet;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description: 用户钱包信息接口
 * @Author: 陈阳
 * @CreateDate: 2018/12/21$ 20:39$
 */
@Mapper
public interface IAppUserWalletDao {
    /**
     * 获取用户余额
     * */
    double getDefference(String telephone);
    /**
     * 用户充值
     * */
    int toRecharge(String telephone,double money);
    int updateRecharge(String telephone,double money);
    /**
     * 用户提现
     * */
    int toEnchashment(String telephone,double money);
    int updateEnchashment(String telephone,double money);
    /**
     * 获取用户充值提现记录
     */
    List<AppUserWallet> getRechargeEnchashment(String telephone);
}
